<!DOCTYPE html>
<!-- v1.6.7.2 RDPROJECT-569 cx 2013-12-26 start -->
<html>
<#include "../../include/resource.html">
<body>
	<#assign nid="shop"> 
	<#include "../../common/function.html"> 
	<#include "../../include/header.html">
	 
	<!-- #main start-->
	<div id="main" class="clearfix" >
		<!-- .wrap950 开始-->
		<div class="wrap950 ">
			<!--左边的导航user_left 开始-->
			<div class="user_left">
				<#assign mid="m_shop" >
				<#include "./left.html">
			</div>
			<!--左边的导航user_left 结束-->
			<#if param?exists>
                 <#if param.get("user_id")?exists><#assign user_id=param.get("user_id")></#if>
             </#if>
			<!--右边的内容user_right 开始-->
			<div class="user_right">	
					<!-- 内容开始 -->
					<b>消费记录明细</b>
					<form action="" method="post">
						<table  border="0" style="width: 100%"  cellspacing="1" class="table table-striped  table-condensed" >
							<tr class="head">
								<th width="5%;">图片</th>
			                    <th width="15%;">商品名称</th>
			                    <th width="5%;">数量</th>
			                    <th width="8%;">单个积分</th>
			                    <th width="8%;">小计</th>
			                    <th width="20%">备注/地址</th>
			                    <th width="8%;">状态</th>
			                    <th>兑换日期</th>
							</tr>
							<#list list as item>
								<tr>
									<td ><img src="${item.pic_url!}" width="50px;" height="40px;"></td>
									<td>${item.goods_name!}</td>
									<td>${item.convert_num!}</td>
									<td>${item.goods_credit_value!}</td>
									<td>${item.credit_value!}</td>
									<td>${item.remark!}</td>
									<td><#if item.status==0>待审核  |&nbsp;<a style="color:red;cursor: pointer;" onclick="javascript:cancelConvert(${item.id!});">撤回</a>
										<#elseif item.status==1>通过
										<#elseif item.status==2>未通过
										<#else>已撤回
									</#if></td>
									<td>${dateformat(item.addtime!)}</td>
								</tr>
							</#list>
							<tr>
								<td colspan="11" class="page">
								<div class="container" align="center">
                      			<#import "../../common/page.html" as pager>
                            	<@pager.pagination page=page url="/credit/usedCreditDetail.html" map=param style="style1" />
                    			</div>
								</td>
							</tr>
						</table>
					</form>	
					<!-- 内容结束 -->
			</div>
			<!--右边的内容user_right 结束-->
		</div>
	</div>
	<!-- #main start-->
	<script type="text/javascript">
		function cancelConvert(id){
			if(confirm("您确定要取消此兑换吗？")){
				location.href="canceltCreditConvert.html?id="+id;
			}
		}
	</script>
<#include "../../include/footer.html">
</body>
</html>
<!-- v1.6.7.2 RDPROJECT-569 cx 2013-12-26 end -->